package com.sinodata.bsm.cicp.collector.common;

import java.util.List;

import com.sinodata.bsm.cicp.collector.Collector;
import com.sinodata.bsm.common.vo.ResPropertyValue;

/**
 * 
 * <p>
 * Description: 
 * </p>
 *
 * @author liulibo
 * @version 1.0

 * <p>
 * History: 
 *
 * Date                     Author         Version     Description
 * ---------------------------------------------------------------------------------
 * 2012-12-20 15:35:16      liulibo        1.0         To create
 * </p>
 *
 * @since 
 * @see
 */
public class SNMPCollector extends Collector {

    /**
     * 
     */
    public SNMPCollector() {
    }

    @Override
    public List<ResPropertyValue> collect(String ip) {
        //        String oids = this.paramMap.get("oids");
        //        String aString = SnmpUtil.getValueBySnmp(ip, "");
        return null;
    }

    /**
     * iods的数据格式
     * cpu:1.1.1.0;mem:2.2.2.1;flow:3.3.31.1
     */

    @Override
    public String[] getParamMeta() {
        return new String[] { "oids" };
    }

    @Override
    public String[] getPropMeta() {
        String oids = this.paramMap.get("oids");
        String[] arr = oids.split(";");
        String[] meta = new String[arr.length];
        for (int i = 0; i < meta.length; i++) {
            meta[i] = arr[i].split(":")[0];
        }
        return null;
    }

}
